package cn.bonoon.controllers.question;

import cn.bonoon.kernel.annotations.Cutoff;
import cn.bonoon.kernel.support.models.AbstractItem;
import cn.bonoon.kernel.web.annotations.grid.AsColumn;
import cn.bonoon.kernel.web.annotations.grid.AsDataGrid;
import cn.bonoon.kernel.web.annotations.grid.GridOptions;

@AsDataGrid(condition = AskCondition.class, value = @GridOptions(operationWith = 120, fitColumns = true))
public class AskItem extends AbstractItem implements AsknDefine {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2711443143997101176L;
	
	@AsColumn(width = 200, ordinal = 0)
	@Cutoff(50)
	private String question;
	
	@AsColumn(width = 50, ordinal = 1)
	private String answered;
	
	@AsColumn(width = 80, ordinal = 2)
	@Cutoff(-1)
	private String contactName;
	
	@AsColumn(width = 80, ordinal = 3)
	@Cutoff(-1)
	private String contactPhone;
	
	@AsColumn(width = 80, ordinal = 4)
	@Cutoff(-1)
	private String contactEmail;
	
	@AsColumn(width = 80, ordinal = 5)
	private String creatorName;
	
	@AsColumn(width = 150, ordinal = 6)
	private String createAt;

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getContactName() {
		return contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	public String getContactEmail() {
		return contactEmail;
	}

	public void setContactEmail(String contactEmail) {
		this.contactEmail = contactEmail;
	}

	public String getCreateAt() {
		return createAt;
	}

	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}

	public String getAnswered() {
		return answered;
	}

	public void setAnswered(String answered) {
		this.answered = answered;
	}

	public String getCreatorName() {
		return creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}
	
	
}
